<?php ob_start();
    $education = Model_Listing_Maid::getEducation();
    $languages = Model_Listing_Maid::getLanguages();
    $nationality = Model_Listing_Maid::getNationality();
    $religion = Model_Listing_Maid::getReligion();
    $maritalstatus = Model_Listing_Maid::getMaritalStatus();
    $gender = Model_Listing_Maid::getGender();
    $employmenttype = Model_Listing_Maid::getEmploymentType();
    $skilllevel = Model_Listing_Maid::getSkillLevel();
    $experience = Model_Listing_Maid::getYearExperience();
    $horoscope = Model_Listing_Maid::getHoroscope();
    $chinesezodiac = Model_Listing_Maid::getChineseZodiac();
    $joblocation = Model_Listing_Maid::getLocation();
    $visastatus = Model_Listing_Maid::getVisastatus();
	$internal_lng = $this->listing->getInternalLanguage();
?>
<div class="detail category">
	<h2><?php echo $this->t('Personal Information')?></h2>
    <?php if (!empty($this->listing->age)) {echo "<dl>".$this->dtDd($this->t('Age', $internal_lng), $this->listing->age)."</dl>";}?>
    <?php if (!empty($this->listing->maritalstatus)) {echo "<dl>".$this->dtDd($this->t('Marital Status', $internal_lng), $this->t($maritalstatus[$this->listing->maritalstatus]), true)."</dl>";}?>
    <?php //if (!empty($this->listing->gender)) {echo "<dl>".$this->dtDd($this->t('Marital Status'), $maritalstatus[$this->listing->gender])."</dl>";}?>
    <?php if (!empty($this->listing->nationality)) {echo "<dl>".$this->dtDd($this->t('Nationality', $internal_lng), $this->t($nationality[$this->listing->nationality], $internal_lng))."</dl>";}?>
    <?php if (!empty($this->listing->religion)) {echo "<dl>".$this->dtDd($this->t('Religion', $internal_lng), $this->t($religion[$this->listing->religion], $internal_lng))."</dl>";}?>
    <?php if (!empty($this->listing->weight)) {echo "<dl>".$this->dtDd($this->t('Weight', $internal_lng), number_format($this->listing->weight).' kg')."</dl>";}?>
    <?php if (!empty($this->listing->gender)) {echo "<dl>".$this->dtDd($this->t('Gender', $internal_lng), $this->t($gender[$this->listing->gender], $internal_lng))."</dl>";}?>
    <?php if (!empty($this->listing->height)) {echo "<dl>".$this->dtDd($this->t('Height', $internal_lng), number_format($this->listing->height).' cm')."</dl>";}?>
    <?php if (!empty($this->listing->horoscope)) {echo "<dl>".$this->dtDd($this->t('Horoscope', $internal_lng), $horoscope[$this->listing->horoscope])."</dl>";}?>
    <?php if (!empty($this->listing->chinesezodiac)) {echo "<dl>".$this->dtDd($this->t('Chinese Zodiac', $internal_lng), $chinesezodiac[$this->listing->chinesezodiac])."</dl>";}?>
</div>    
    
    
<div class="detail category">    
    <h2><?php echo $this->t('Skills & Experience', $internal_lng)?></h2>
   <?php //Cooking
   	if(!empty($this->listing->skilllevelwestern) || !empty($this->listing->skilllevelchinese) || !empty($this->listing->skilllevelchinese) || !empty($this->listing->specialitieswestern) || !empty($this->listing->specialitieschinese) || !empty($this->listing->specialitieschinese)){
   ?> 
    <dl class="cooking table">
        <dt>
			<span class="title"><?php echo $this->t('Cooking Style', $internal_lng);?></span>
			<span class="value"><?php echo $this->t('Skill Level', $internal_lng);?></span>
		</dt>        
		<?php if (!empty($this->listing->skilllevelwestern)) {?>
        <dd>
            <span class="title"><?php echo $this->t('Western', $internal_lng);?></span>
            <span class="value"><?php echo $this->t($skilllevel[$this->listing->skilllevelwestern], $internal_lng);?></span>
        </dd>
        <?php }
		if (!empty($this->listing->skilllevelchinese)) {?>
        <dd>
            <span class="title"><?php echo $this->t('Chinese', $internal_lng);?></span>
            <span class="value"><?php echo $this->t($skilllevel[$this->listing->skilllevelchinese], $internal_lng);?></span>
        </dd>
        <?php }
		if (!empty($this->listing->specialitieswestern)) {?>
		<dd>
            <span class="title"><?php echo $this->t('Specialities', $internal_lng);?></span>
            <span class="value"><?php echo $this->t($skilllevel[$this->listing->specialitieswestern], $internal_lng);?></span>
        </dd>
        <?php }?>
    </dl>
    <?php
    }
    ?>
    
    <?php //People Care
    if(!empty($this->listing->yearsexperiencenewborn) || !empty($this->listing->yearsexperiencechildren) || !empty($this->listing->yearsexperiencedisable) || !empty($this->listing->yearsexperienceelderly)){
    ?>
	<dl class="care table">
		
        <dt>
			<span class="title"><?php echo $this->t('People Care and Nursing', $internal_lng)?></span>
			<span class="value"><?php echo $this->t('Years', $internal_lng)?></span>
		</dt>                   
		
		<?php if (!empty($this->listing->yearsexperiencenewborn)) {?>
        <dd>
            <span class="title"><?php echo $this->t('Newborn', $internal_lng)?></span>
            <span class="value"><?php echo $this->t($experience[$this->listing->yearsexperiencenewborn], $internal_lng)?></span>
    	</dd>
    	<?php }
		if (!empty($this->listing->yearsexperiencechildren)) {?>
        <dd>
            <span class="title"><?php echo $this->t('Children', $internal_lng)?></span>
            <span class="value"><?php echo $this->t($experience[$this->listing->yearsexperiencechildren], $internal_lng)?></span>
        </dd>
        <?php }
		if (!empty($this->listing->yearsexperiencedisable)) {?>
		<dd>
            <span class="title"><?php echo $this->t('Disable', $internal_lng)?></span>
            <span class="value"><?php echo $this->t($experience[$this->listing->yearsexperiencedisable], $internal_lng)?></span>
        </dd>
        <?php }
		if (!empty($this->listing->yearsexperienceelderly)) {?>
        <dd>
            <span class="title"><?php echo $this->t('Elderly', $internal_lng)?></span>
            <span class="value"><?php echo $this->t($experience[$this->listing->yearsexperienceelderly], $internal_lng)?></span>
		</dd>
		<?php }?> 
    </dl>
	<?php }?>
	
	<?php //overseas exp
	if(!empty($this->listing->hongkongyearsexperience) || !empty($this->listing->indonesiayearsexperience) || !empty($this->listing->malaysiayearsexperience) || !empty($this->listing->middleeastyearsexperience) || !empty($this->listing->philippinesyearsexperience) || !empty($this->listing->singaporeyearsexperience) || !empty($this->listing->taiwanyearsexperience) || !empty($this->listing->thailandyearsexperience) || !empty($this->listing->otheryearsexperience)){
	?>
	<dl class="oversea table">
    	<dt>	
    		<span class="title"><?php echo $this->t('Overseas Experience', $internal_lng)?></span>
			<span class="value"><?php echo $this->t('Years', $internal_lng)?></span>
		</dt>        
		<?php
		if(!empty($this->listing->hongkongyearsexperience)){
		?>
        <dd>
            <span class="title"><?php echo $this->t('Hong Kong', $internal_lng)?></span>
            <span class="value"><?php echo $this->t($experience[$this->listing->hongkongyearsexperience], $internal_lng)?></span>
		</dd>
		<?php
		}
		if(!empty($this->listing->indonesiayearsexperience)){?>
		<dd>
            <span class="title"><?php echo $this->t('Indonesia', $internal_lng)?></span>
            <span class="value"><?php echo $this->t($experience[$this->listing->indonesiayearsexperience], $internal_lng)?></span>
		</dd>
		<?php
		}
		if(!empty($this->listing->malaysiayearsexperience)){?>
		<dd>
            <span class="title"><?php echo $this->t('Malaysia', $internal_lng)?></span>
            <span class="value"><?php echo $this->t($experience[$this->listing->malaysiayearsexperience], $internal_lng)?></span>
		</dd>
		<?php
		}
		if(!empty($this->listing->middleeastyearsexperience)){?>
		<dd>
            <span class="title"><?php echo $this->t('Middle East', $internal_lng)?></span>
            <span class="value"><?php echo $this->t($experience[$this->listing->middleeastyearsexperience], $internal_lng)?></span>
		</dd>
		<?php
		}
		if(!empty($this->listing->philippinesyearsexperience)){?>
		<dd>
            <span class="title"><?php echo $this->t('Philippines', $internal_lng)?></span>
            <span class="value"><?php echo $this->t($experience[$this->listing->philippinesyearsexperience], $internal_lng)?></span>
		</dd>
		<?php
		}
		if(!empty($this->listing->singaporeyearsexperience)){?>
		<dd>
            <span class="title"><?php echo $this->t('Singapore', $internal_lng)?></span>
            <span class="value"><?php echo $this->t($experience[$this->listing->singaporeyearsexperience], $internal_lng)?></span>
		</dd>
		<?php
		}
		if(!empty($this->listing->taiwanyearsexperience)){?>
		<dd>
            <span class="title"><?php echo $this->t('Taiwan', $internal_lng)?></span>
            <span class="value"><?php echo $this->t($experience[$this->listing->taiwanyearsexperience], $internal_lng)?></span>
		</dd>
		<?php
		}
		if(!empty($this->listing->thailandyearsexperience)){?>
		<dd>
            <span class="title"><?php echo $this->t('Thailand', $internal_lng)?></span>
            <span class="value"><?php echo $this->t($experience[$this->listing->thailandyearsexperience], $internal_lng)?></span>
		</dd>
		<?php
		}
		if(!empty($this->listing->otheryearsexperience)){?>
		<dd>
            <span class="title"><?php echo $this->t('Other', $internal_lng)?></span>
            <span class="value"><?php echo $this->t($experience[$this->listing->otheryearsexperience], $internal_lng)?></span>
		</dd>
		<?php }?>
	</dl> 
	<?php }?>
	
	<?php //Education
	 if (!empty($this->listing->education)) {?>
	<dl class="education">
		<?php echo $this->dtDd($this->t('Education', $internal_lng), $this->t($education[$this->listing->education], $internal_lng));?>
	</dl>
	<?php }?>
	
	<?php //Language
	 if (!empty($this->listing->languages)) {?>
	<dl class="desc">
		<?php echo $this->dtDd($this->t('Languages', $internal_lng), $this->t($languages[$this->listing->languages[0]], $internal_lng));?>
	</dl>
	<?php }?>
	
	<?php
    if (!empty($this->listing->householdcleaning)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Maid::getHouseholdCleaning();
        $to_add     = '';
        foreach ((array)$this->listing->householdcleaning as $data) {
            $field .= $to_add . $this->t($views[$data], $internal_lng);
            $i++;
            $to_add = ', ';
        }
        echo '<dl class="desc">'.$this->dtDd($this->t('Household and Cleaning', $internal_lng), $field).'</dl>';
    }
    ?>
 </div>   
    
<div class="detail category">
	<h2><?php echo $this->t('Employment Information', $internal_lng)?></h2>
    <?php if (!empty($this->listing->reasonleavingpreviousjob)) {echo "<dl class='desc'>".$this->dtDd($this->t('Reason for leaving previous job', $internal_lng), $this->listing->reasonleavingpreviousjob)."</dl>";}?>
    <?php if (!empty($this->listing->employmenttype)) {echo "<dl>".$this->dtDd($this->t('Employment Type', $internal_lng), $this->t($employmenttype[$this->listing->employmenttype[0]], $internal_lng))."</dl>";}?>
	<?php if (!empty($this->listing->availabletostart)) {echo "<dl>".$this->dtDd($this->t('Available to Start', $internal_lng), gmdate($this->listing->availabletostart))."</dl>";}?>
    <?php if (!empty($this->listing->visastatus)) {echo "<dl>".$this->dtDd($this->t('Visa Status', $internal_lng), $this->t($visastatus[$this->listing->visastatus], $internal_lng))."</dl>";}?>
</div>
<?php $content = trim(ob_get_clean())?>
<?php $this->jQuery()->enable()?>
<?php $this->JQuery()->javascriptCaptureStart()?>
jQuery(function() {
	 $j('.ad_detail').addClass('domestic_help');
});
<?php $this->JQuery()->javascriptCaptureEnd()?>
<?php if (!empty($content)):?>
    
        
            <?php echo $content ?>
    
<?php endif;?>